package wang.Demo;

public class SuShuDemo6_3 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 101; i <= 200; i++) {
            if (check(i)){
                System.out.println(i);
                count++;
            }

        }
        System.out.println(count);
    }
    public static boolean check (int data){
        for (int i = 2; i < data/2; i++) {
            if (data % i ==0){
                return false;
            }

        }
        return true;
    }
}
